package study;

public class TestConstructorPrint {
    public static void main(String[] args) {
        Parent parent = new Child();
        parent = new Child();
    }

}

class Parent1 {
    static {
        System.out.println("1");
    }

    public Parent1() {
        System.out.println("2");
    }
}

class Child extends Parent {
    static {
        System.out.println("3");
    }

    public Child() {
        System.out.println("4");
    }
}
